<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Javascript 变量</title>
</head>
<body>
<h1>一条语句，多个变量</h1>
<p>您可以在一条语句中声明多个变量。用，隔开</p>
<p id="demo"></p>

<script>
  var person="Bill Gates",
  carName = "porsche",
  price = 150000;
  document.getElementById("demo").innerHTML = carName;
</script>

</body>
</html>